package com.qiaofang.collectmanage.stub.request;

import com.qiaofang.collectmanage.stub.bean.CommonCityExtendDTO;
import com.qiaofang.common.request.CommonRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Copyright (C), 2002-2017, 上海巧房信息技术有限公司
 * FileName: commonCityExtendRequest
 * @Author:   yi.li
 * Date:     2018/7/2 16:56
 * Description: 通用网址扩展请求实体
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
public class CommonCityExtendRequest extends CommonRequest{

    @ApiModelProperty(value="源city")
    @NotNull(message = "源城市不能为空")
    private String city;
    @ApiModelProperty(value="源采集网站")
    @NotNull(message = "源采集网站不能为空")
    private String source;
    @ApiModelProperty(value="源归属人")
    @NotNull(message = "源归属人不能为空")
    private String belonger;
    @ApiModelProperty(value="源房屋类型 ")
    @NotNull(message = "源房屋类型不能为空")
    private String collectHouseType;
    @ApiModelProperty(value="源采集类型")
    @NotNull(message = "源采集类型不能为空")
    private String collectType;

    @ApiModelProperty(value = "通用网址扩展请求实体目标对象")
    @Valid
    private List<CommonCityExtendDTO> data;

    public String getCollectHouseType() {
        return collectHouseType;
    }

    public void setCollectHouseType(String collectHouseType) {
        this.collectHouseType = collectHouseType;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getBelonger() {
        return belonger;
    }

    public void setBelonger(String belonger) {
        this.belonger = belonger;
    }


    public String getCollectType() {
        return collectType;
    }

    public void setCollectType(String collectType) {
        this.collectType = collectType;
    }

    public List<CommonCityExtendDTO> getData() {
        return data;
    }

    public void setData(List<CommonCityExtendDTO> data) {
        this.data = data;
    }
}
